package com.example.web.websystem.dao;

import com.example.web.websystem.dao.model.SysGroupDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysGroupDao {
    int deleteByPrimaryKey(Long groupId);

    int insertSelective(SysGroupDO record);

    SysGroupDO selectByPrimaryKey(Long groupId);

    int updateByPrimaryKeySelective(SysGroupDO record);


    List<SysGroupDO> listAll();

    int updateGroupAdminUserId(@Param("groupId") Long groupId, @Param("userId") Long userId);

    int updateGroupPaths(@Param("groupId") Long groupId, @Param("groupPaths") String groupPaths);

}